<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>

<html>
  <head>
    <title>修改新闻信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  
  <body>
  	<s:form action="/news_update.action" method="post" theme="simple">
  	<!-- 修改操作：隐藏域保存主键值 -->
  	<s:hidden name="id" id="id" value="%{id}"></s:hidden>
  	
  	 <table border="1" align="center" cellpadding="5" cellspacing="0">
  	 	<tr>
  	 		<td>新闻标题</td>
  	 		<td>
  	 			<s:textfield name="ntitle" id="ntitle" value=""></s:textfield>
  	 		</td>
  	 	</tr>
  	 	
  	 	<tr>
  	 		<td>新闻内容</td>
  	 		<td>
  	 			<s:textfield name="ncontent" id="ncontent"></s:textfield>
  	 		</td>
  	 	</tr>
  	 	
  	 	
  	 	<tr>
  	 		<td colspan="2">
  	 			<s:submit value="修改新闻"></s:submit>
  	 		</td>
  	 	</tr>
  	 </table>
  	 
  	 <div align="center">
  	    <h1 align="center">
  	       <a href="news_list.action">返回</a>
  	    </h1>
  	 </div>
  	 </s:form>
  </body>
</html>
